package com.admin.education.dataTransferObject.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class LoginRequest {
    @NotNull(message = "用户名不能为空")
    @Size(min = 4,max = 18,message = "用户名不能少于4个字符")
    @NotBlank
    private String username;

    @NotNull(message = "密码不能为空")
    @Size(min = 6,max = 18,message = "密码不能少于4个字符")
    @NotBlank
    private String password;
}
